package com.info.zhiduoduo.repository.entity.partner;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

import lombok.Data;
import lombok.experimental.Accessors;

/**
 * <p>
 * 合伙人提现申请
 * </p>
 *
 * @author bob
 * @since 2020-08-02
 */
@Data
@Accessors(chain = true)
@TableName("zdd_partner_studio_withdraw")
public class PartnerStudioWithdraw extends Model<PartnerStudioWithdraw> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * 合伙人id
     */
    private Integer partnerid;
    /**
     * 提现项目id,对应zdd_company_project
     */
    private Integer projectid;
    /**
     * 合伙人佣金类型 1：  2：智众包
     */
    private Integer brokerageType;
    /**
     * 提现金额
     */
    private BigDecimal amount;
    /**
     * 状态 1:已申请 2:已发单 3:已完成
     */
    private Integer state;
    /**
     * 申请时间
     */
    private Date starttime;
    /**
     * 完成时间
     */
    private Date endtime;
    private Date createtime;
    private Date updatetime;

    /**
     * 备注
     */
    private String remark;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
